package com.aaa.product.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import org.springframework.data.annotation.Transient;

    /**
    * 商品信息
    */
@Data
@TableName(value = "tb_prd_info")
public class TbPrdInfo implements Serializable {
    @TableId(value = "tid", type = IdType.UUID)
    private String tid;

    /**
     * 对外展示名称
     */
    @TableField(value = "label_name")
    private String labelName;

    /**
     * 短描述
     */
    @TableField(value = "short_desc")
    private String shortDesc;

    /**
     * 价格
     */
    @TableField(value = "price")
    private Integer price;

        /**
         * 库存
         */
    @TableField(value = "store")
    private Integer store;

    @TableField(value = "create_by")
    private String createBy;

    @TableField(value = "create_date")
    private String createDate;

    @TableField(value = "update_by")
    private String updateBy;

    @TableField(value = "update_date")
    private String updateDate;

    @TableField(value = "remark")
    private String remark;

    @TableField(value = "version")
    private Integer version;

    @TableField(value = "state")
    private Integer state;

    @TableField(value = "pic_path")
    private String picPath;

    @TableField(exist = false)
    private TbPrdExtend tbPrdExtend;


    public static final String COL_TID = "tid";

    public static final String COL_LABEL_NAME = "label_name";

    public static final String COL_SHORT_DESC = "short_desc";

    public static final String COL_PRICE = "price";

    public static final String COL_STORE = "store";

    public static final String COL_CREATE_BY = "create_by";

    public static final String COL_CREATE_DATE = "create_date";

    public static final String COL_UPDATE_BY = "update_by";

    public static final String COL_UPDATE_DATE = "update_date";

    public static final String COL_REMARK = "remark";

    public static final String COL_VERSION = "version";

    public static final String COL_STATE = "state";

    public static final String COL_PIC_PATH = "pic_path";
}